import request from '@/utils/request'

// 查询重车作业单申报管理列表
export function listGHeavyBills(query) {
  return request({
    url: '/billsdecl/gHeavyBills/list',
    method: 'get',
    params: query
  })
}

// 查询重车作业单申报管理详细
export function getGHeavyBills(platSeqNo) {
  return request({
    url: '/billsdecl/gHeavyBills/getInfo/' + platSeqNo,
    method: 'get'
  })
}

//编辑详情
export function getEditGHeavyBills(platSeqNo) {
  return request({
    url: '/billsdecl/gHeavyBills/getEditInfo/' + platSeqNo,
    method: 'get'
  })
}


// 新增重车作业单申报管理
export function addGHeavyBills(data) {
  return request({
    url: '/billsdecl/gHeavyBills/add',
    method: 'post',
    data: data
  })
}

// 修改重车作业单申报管理
export function updateGHeavyBills(data) {
  return request({
    url: '/billsdecl/gHeavyBills/edit',
    method: 'post',
    data: data
  })
}

// 删除重车作业单申报管理
export function delGHeavyBills(platSeqNo) {
  return request({
    url: '/billsdecl/gHeavyBills/remove/' + platSeqNo,
    method: 'get'
  })
}

// 导出重车作业单申报管理
export function exportGHeavyBills(query) {
  return request({
    url: '/billsdecl/gHeavyBills/export',
    method: 'get',
    params: query
  })
}

// 申报
export function declGHeavyBills(platSeqNos) {
  return request({
    url: '/billsdecl/gHeavyBills/decl/' + platSeqNos,
    method: 'get'
  })
}

// 重发
export function declRepeatGHeavyBills(platSeqNos) {
  return request({
    url: '/billsdecl/gHeavyBills/declRepeat/' + platSeqNos,
    method: 'get'
  })
}

//退单
export function chargebackGHeavyBills(platSeqNos) {
  return request({
    url: '/billsdecl/gHeavyBills/chargeback/' + platSeqNos,
    method: 'get'
  })
}
